package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.etone.smartAudit.enums.CheckState;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: sovy
 * @date: 2020/7/30
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName(value = "f_task_exec")
public class TaskExec implements Serializable {

    @TableId(type = IdType.AUTO, value = "intId")
    private Integer id;

    /**
     * 执行人id
     */
    @TableField("intAdminId")
    private Integer adminId;

    /**
     * 执行人名称
     */
    @TableField("vcAdminName")
    private String adminName;

    /**
     * 执行天数|实际工时
     */
    @TableField("douDayCnt")
    private Double dayCnt;

    /**
     * 预计工时
     */
    @TableField("douExpectDayCnt")
    private Double expectDayCnt;

    /**
     * 任务id
     */
    @TableField("intTaskId")
    private Integer taskId;

    /**
     * 专家id
     */
    @TableField("intServiceExpertId")
    private Integer serviceExpertId;

    /**
     * 专家名称
     */
    @TableField("vcServiceExpertName")
    private String serviceExpertName;

    /**
     * 执行状态
     */
    @TableField("vcState")
    private CheckState state;

    /**
     * 执行开始时间
     */
    @TableField("dtStartTime")
    private Date startTime;

    /**
     * 执行结束时间
     */
    @TableField("dtEndTime")
    private Date endTime;

    /**
     * 相关附件
     */
    @TableField("vcFile")
    private String file;

    /**
     * 扩展信息
     */
    @TableField("vcExtendInfo")
    private String extendInfo;
}
